namespace Architecture.CrossCutting.LoggingEntities.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UpdatewcfClientLog : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.WcfClientLogs", "Step", c => c.Int(nullable: false));
            AddColumn("dbo.WcfClientLogs", "PipeLineStarted", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "PipeLineDuration", c => c.Long(nullable: false));
            AddColumn("dbo.WcfClientLogs", "PipeLineEnded", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "RequestSended", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "RequestLogDuration", c => c.Long(nullable: false));
            AddColumn("dbo.WcfClientLogs", "ResponseReceived", c => c.DateTime());
            AddColumn("dbo.WcfClientLogs", "IsFault", c => c.Boolean(nullable: false));
            AddColumn("dbo.WcfClientLogs", "Level", c => c.Int(nullable: false));
            AddColumn("dbo.WcfClientLogs", "Created", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "ThreadId", c => c.Int(nullable: false));
            AddColumn("dbo.WcfClientLogs", "ProcessId", c => c.Int(nullable: false));
            AddColumn("dbo.WcfClientLogs", "ServerName", c => c.String());
            AddColumn("dbo.WcfClientLogs", "ServerIp", c => c.String());
            AddColumn("dbo.WcfClientLogs", "ThreadIdentity", c => c.String());
            AddColumn("dbo.WcfClientLogs", "WindowsIdentity", c => c.String());
            DropColumn("dbo.WcfClientLogs", "RequestDuration");
            DropColumn("dbo.WcfClientLogs", "Started");
            DropColumn("dbo.WcfClientLogs", "Finished");
        }
        
        public override void Down()
        {
            AddColumn("dbo.WcfClientLogs", "Finished", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "Started", c => c.DateTime(nullable: false));
            AddColumn("dbo.WcfClientLogs", "RequestDuration", c => c.Long(nullable: false));
            DropColumn("dbo.WcfClientLogs", "WindowsIdentity");
            DropColumn("dbo.WcfClientLogs", "ThreadIdentity");
            DropColumn("dbo.WcfClientLogs", "ServerIp");
            DropColumn("dbo.WcfClientLogs", "ServerName");
            DropColumn("dbo.WcfClientLogs", "ProcessId");
            DropColumn("dbo.WcfClientLogs", "ThreadId");
            DropColumn("dbo.WcfClientLogs", "Created");
            DropColumn("dbo.WcfClientLogs", "Level");
            DropColumn("dbo.WcfClientLogs", "IsFault");
            DropColumn("dbo.WcfClientLogs", "ResponseReceived");
            DropColumn("dbo.WcfClientLogs", "RequestLogDuration");
            DropColumn("dbo.WcfClientLogs", "RequestSended");
            DropColumn("dbo.WcfClientLogs", "PipeLineEnded");
            DropColumn("dbo.WcfClientLogs", "PipeLineDuration");
            DropColumn("dbo.WcfClientLogs", "PipeLineStarted");
            DropColumn("dbo.WcfClientLogs", "Step");
        }
    }
}
